home *** CD-ROM | disk | FTP | other *** search
- unit MultipleClientsU;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
-
- type
- TMainForm = class(TForm)
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- MainForm: TMainForm;
-
- implementation
-
- {$R *.DFM}
-
- procedure TMainForm.FormCreate(Sender: TObject);
- const
- Colors: array[1..6] of TColor =
- (clWhite, clBlack, clBlue, clGreen, clRed, clYellow);
- var
- I: Integer;
- begin
- for I := Low(Colors) to High(Colors) do
- with TForm.CreateNew(Self) do
- begin
- Caption := 'Dock me in the main form';
- Color := Colors[I];
- DragKind := dkDock;
- DragMode := dmAutomatic;
- Position := poDefaultPosOnly;
- Width := 230;
- Height := 100;
- Visible := True;
- end;
- end;
-
- end.
-